/**
 * 验证下拉列表值是否存在，解决下拉列表未选择手动输入的问题
 * 
**/
function comboboxValit(value, type){
	switch(type){
	case '客户档案':
		var rel = undefined;
		$.ajaxSettings.async = false;
		$.post('/manage/selectList/customerListByIds',{ids: value},function(d){
			if(d.length < 1){
				rel = false;
			}else{
				rel = true;
			}
		});
		$.ajaxSettings.async = true;
		return rel;
		break;
	}
}
/**
 * 验证基础档案与U8编码对照
 * @param value
 * @param type
 * @returns
 */
function voucherCodeValit(value, type){
	switch(type){
	case '客户档案':
		var rel = undefined;
		$.ajaxSettings.async = false;
		$.post('/manage/selectList/customerListByIds',{ids: value},function(d){
			if(d.length < 1){
				rel = false;
			}else{
				if(d[0].voucherCode == '' || d[0].voucherCode == null){
					rel = false;
				}else{
					rel = true;
				}
			}
		});
		$.ajaxSettings.async = true;
		return rel;
		break;
	}
}